<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<body>
	<ui:composition>

		<p:panelGrid style="margin-top:20px">
			<f:facet name="header">
				<p:row>
					<p:column>ID</p:column>
					<p:column>Owner</p:column>
					<p:column>Created</p:column>
					<p:column>Updated</p:column>
					<p:column>Approved</p:column>
					<p:column>Rejected</p:column>
				</p:row>
			</f:facet>
			<p:row>
				<p:column>
					<h:outputText
						value="#{bean.id}" />
				</p:column>
				<p:column>
					<h:outputText
						value="#{bean.owner.displayName}" />
				</p:column>
				<p:column>
					<h:outputText
						value="#{bean.createdBy.displayName}" />
				</p:column>
				<p:column>
					<h:outputText
						value="#{bean.updatedBy.displayName}" />
				</p:column>
				<p:column>
					<h:outputText
						value="#{bean.approvedBy.displayName}" />
				</p:column>
				<p:column>
					<h:outputText
						value="#{bean.rejectedBy.displayName}" />
				</p:column>
			</p:row>
			<p:row>
				<p:column></p:column>
				<p:column></p:column>
				<p:column>
					<h:outputText
						value="#{bean.created}">
						<f:convertDateTime pattern="MM/dd/yyyy h:mm a" />
					</h:outputText>
				</p:column>
				<p:column>
					<h:outputText
						value="#{bean.updated}">
						<f:convertDateTime pattern="MM/dd/yyyy h:mm a" />
					</h:outputText>
				</p:column>
				<p:column>
					<h:outputText
						value="#{bean.approved}">
						<f:convertDateTime pattern="MM/dd/yyyy h:mm a" />
					</h:outputText>
				</p:column>
				<p:column>
					<h:outputText
						value="#{bean.rejected}">
						<f:convertDateTime pattern="MM/dd/yyyy h:mm a" />
					</h:outputText>
				</p:column>
			</p:row>
		</p:panelGrid>

	</ui:composition>
</body>
</html>